import request from '@/utils/request';


export async function query({...resetParams}) {
  return request(`/warehousing_lists`,{
    method:'GET',
    params:{
      ...resetParams,
      order_direction:'desc'
    }
  });
}
export async function remove({id}) {
  return request(`/warehousing_lists/${id}`, {
    method: 'DELETE',
  });
}

export async function add(payload) {
  return request(`/warehousing_lists`, {
    method: 'POST',
    data: {
      ...payload,
    },
  });
}

export async function confirm({id,...restParams}) {
  return request(`/warehousing_lists/${id}/confirm`, {
    method: 'POST',
    data: {
      ...restParams,
    },
  });
}


